home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10306 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fflush and Visual C++
  5. Date: 16 Mar 1996 10:19 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <16MAR199610190465@erich.triumf.ca>
  9. References: <4idhv5$dnv@news.mhv.net>
  10. NNTP-Posting-Host: erich.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4idhv5$dnv@news.mhv.net>, Vinny.Bedus@bbs.mhv.net writes...
  14. >Can someone please tell me why when fflush function is used in Visual C 
  15. >under a dos box it doesn't work?  I have no problems with turbo c for win 
  16. >but anything else and it doesn't flush the stdin buffer.
  17. > any ans??????????????
  18.  
  19. fflush() is only defined to work on output streams.  If some compiler happened
  20. to do something useful when you used it on an input stream, you were just
  21. (un?)lucky.
  22.  
  23. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  24. Internet: bennett@triumf.ca         | of one another only when one can be
  25. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  26. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  27. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  28. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  29.  
  30.